//引入
import App from "../pages/App"
import Limits from "../pages/Limits/limits"
import Man from "../pages/Man/man"
import Re from "../pages/Re/re"
import Sleep from "../pages/Sleep/sleep"
import Staff from "../pages/Staff/staff"
import drug from "../pages/Drug/drug"
import Live from '../pages/Live/live'
import Chat from '../pages/Chat/chat'
import Login from '../pages/Login/login'


//路由表

const routes = [
    {
        from: "/",
        to: "/app/drug",
    },
    {
        path: "/app",
        component: App,
        children: [
            {
                path: '/app/drug',
                component: drug
            },
            {
                path: "/app/limits",
                component: Limits,
            },
            {
                path: "/app/man",
                component: Man,
            },
            {
                path: "/app/re",
                component: Re,
            },
            {
                path: "/app/sleep",
                component: Sleep,
            },
            {
                path: "/app/staff",
                component: Staff,
            },
            {
                path: '/app/live',
                component: Live
            },
            {
                path: '/app/chat',
                component: Chat
            }
        ]
    },
    {
        path: '/login',
        component: Login
    }
]

export default routes